<template>
  <view class="share-guide" v-if="show" @tap="hide">
    <view class="share-content">
      <image class="ui_share_arrow" src="/static/ui_share_arrow.png"></image>

      <view class="share-text">
        <image class="share-arrow" src="/static/share.png"></image>
        <view>请点击右上角转发给朋友或分享到朋友圈</view>
      </view>
    </view>
  </view>
</template>

<script>
import { unix } from 'moment'

export default {
  props: {
    show: {
      type: Boolean,
      default: false
    }
  },
  watch: {
    show(newVal) {
      if (newVal) {
      }
    }
  },
  data() {
    return {}
  },
  mounted() {
  },
  methods: {
    hide() {
      this.$emit('update:show', false)
    },
  }
}
</script>

<style>
.share-guide {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 40rpx;
  padding-right: 0rpx;
}

.share-content {
  position: relative;
}

.ui_share_arrow {
  width: 340rpx;
  height: 340rpx;
}

.share-arrow {
  width: 280rpx;
  height: 210rpx;
  padding-bottom: 20rpx;
}

.share-text {
  position: absolute;
  top: 360rpx;
  right: 40rpx;
  color: #fff;
  font-size: 34rpx;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 2rpx;

}
</style>